Skip to content

Conversation

@ewansheldon
Copy link
Member

No description provided.

@ewansheldon
Copy link
Member Author

@wsdt

}

function withdraw(address _hypervisor, address _token) external {
IERC20(_hypervisor).safeTransferFrom(msg.sender, address(this), IERC20(_hypervisor).balanceOf(msg.sender));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super minor, but code might become much more readable with interface wrappings being class defined instead of the member always being wrapped multiple times in every function call.

path: _pathFromEURA,
recipient: msg.sender,
recipient: address(this),
deadline: block.timestamp + 60,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to have that configurable possibly (with a require min value of 60 for example). This way we can increase the deadline enforced when unforeseen issues arise, the network being congested, etc. --> it at least allows you to react if something breaks at this point.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably a good idea!

}

function deposit(address _collateralToken, uint256 _euroPercentage) external returns (address _hypervisor0, address _hypervisor1) {
// TODO min _euroPercentage of 10%
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't we add the require statement as pointed out in the Todo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's done now, was not yet finished developing that out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants